<template>
  <div>
    <Header></Header>
    <router-view></router-view>
    <!-- 在home,search显示，在登录，注册隐藏-->
    <!--    <Footer v-show="$route.path === '/home' || $route.path === '/search'"></Footer> 这样不好-->
    <Footer v-show="$route.meta.show"></Footer>
  </div>
</template>

<script>
import Header from './components/Header/index'
import Footer from './components/Footer/index'

export default {
  name: '',
  components: {Header, Footer},
  mounted() {
    // 派发获取三级列表的action
    this.$store.dispatch('categoryList')
  }
}
</script>
<style>
</style>
